package com.bjc.base.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bjc.base.bean.request.BorrowReturnLogReqVO;
import com.bjc.base.bean.response.BorrowReturnLogVO;
import com.bjc.base.core.BaseServiceImpl;
import com.bjc.base.core.IBaseDao;
import com.bjc.base.dao.IBorrowReturnLogDao;
import com.bjc.base.service.IBorrowReturnLogService;

/**
 * <p>
 * 绘本归还日志 服务实现类
 * </p>
 *
 * @author 许自辉
 * @since 2018-06-10
 */
@Service
public class BorrowReturnLogImpl extends BaseServiceImpl<BorrowReturnLogReqVO, BorrowReturnLogVO> implements IBorrowReturnLogService {
	
	private IBorrowReturnLogDao dao;

	@Autowired
	@Override
	public void setBaseDao(IBaseDao<BorrowReturnLogReqVO, BorrowReturnLogVO> baseDao) {
		this.baseDao = baseDao;
		this.dao = (IBorrowReturnLogDao) baseDao;
	}

	@Override
	public List<BorrowReturnLogVO> getBookCountByType(BorrowReturnLogReqVO reqVO) {
		return dao.getBookCountByType(reqVO);
	}
	
	
	@Override
	public List<BorrowReturnLogVO> getMyBook(BorrowReturnLogReqVO reqVO){
		return dao.getMyBook(reqVO);
	}
}
